<!DOCTYPE html>
<html lang="en">
  <head>
    <title>TaskScheduler Structure Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Struct/TaskScheduler" class="dashAnchor"></a>
    <a title="TaskScheduler Structure Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">SwiftCoroutine Docs</a> (44% documented)</p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">SwiftCoroutine Reference</a>
        <img id="carat" src="../img/carat.png" />
        TaskScheduler Structure Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/CoFuture.html">CoFuture</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/CoPromise.html">CoPromise</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Enums.html">Enumerations</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/CoFutureError.html">CoFutureError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/CoroutineError.html">CoroutineError</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Extensions/DispatchQueue.html">DispatchQueue</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/Publisher.html">Publisher</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/TaskExecutor.html">TaskExecutor</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Structs/Coroutine.html">Coroutine</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/TaskScheduler.html">TaskScheduler</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>TaskScheduler</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">TaskScheduler</span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">TaskScheduler</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TaskExecutor.html">TaskExecutor</a></span></code></pre>

                </div>
              </div>
            <p>Undocumented</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine13TaskSchedulerV4mainACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/main" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine13TaskSchedulerV4mainACvpZ">main</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">main</span><span class="p">:</span> <span class="kt">TaskScheduler</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine13TaskSchedulerV6globalACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/global" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine13TaskSchedulerV6globalACvpZ">global</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">global</span><span class="p">:</span> <span class="kt">TaskScheduler</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine13TaskSchedulerV9immediateACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/immediate" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine13TaskSchedulerV9immediateACvpZ">immediate</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">immediate</span><span class="p">:</span> <span class="kt">TaskScheduler</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine13TaskSchedulerV9scheduler9isCurrentACyyycc_Sbyctcfc"></a>
                    <a name="//apple_ref/swift/Method/init(scheduler:isCurrent:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine13TaskSchedulerV9scheduler9isCurrentACyyycc_Sbyctcfc">init(scheduler:isCurrent:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">scheduler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kd">@escaping</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">,</span>
            <span class="nv">isCurrent</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="p">{</span> <span class="kc">false</span> <span class="p">})</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine13TaskSchedulerV7executeyyyycF"></a>
                    <a name="//apple_ref/swift/Method/execute(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine13TaskSchedulerV7executeyyyycF">execute(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">execute</span><span class="p">(</span><span class="n">_</span> <span class="nv">block</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/RunLoop"></a>
                <a name="//apple_ref/swift/Section/RunLoop" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/RunLoop"></a>
                  <h3 class="section-name"><p>RunLoop</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine13TaskSchedulerV7runLoopyACSo05NSRunF0CFZ"></a>
                    <a name="//apple_ref/swift/Method/runLoop(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine13TaskSchedulerV7runLoopyACSo05NSRunF0CFZ">runLoop(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">runLoop</span><span class="p">(</span><span class="n">_</span> <span class="nv">runLoop</span><span class="p">:</span> <span class="kt">RunLoop</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">TaskScheduler</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/DispatchQueue"></a>
                <a name="//apple_ref/swift/Section/DispatchQueue" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/DispatchQueue"></a>
                  <h3 class="section-name"><p>DispatchQueue</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine13TaskSchedulerV13dispatchQueue_3qos5flags5groupACSo03OS_E6_queueC_8Dispatch0L3QoSVAJ0L13WorkItemFlagsVSo0j1_e1_I0CSgtFZ"></a>
                    <a name="//apple_ref/swift/Method/dispatchQueue(_:qos:flags:group:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine13TaskSchedulerV13dispatchQueue_3qos5flags5groupACSo03OS_E6_queueC_8Dispatch0L3QoSVAJ0L13WorkItemFlagsVSo0j1_e1_I0CSgtFZ">dispatchQueue(_:qos:flags:group:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">dispatchQueue</span><span class="p">(</span><span class="n">_</span> <span class="nv">queue</span><span class="p">:</span> <span class="kt">DispatchQueue</span><span class="p">,</span> <span class="nv">qos</span><span class="p">:</span> <span class="kt">DispatchQoS</span> <span class="o">=</span> <span class="o">.</span><span class="n">unspecified</span><span class="p">,</span> <span class="nv">flags</span><span class="p">:</span> <span class="kt">DispatchWorkItemFlags</span> <span class="o">=</span> <span class="p">[],</span> <span class="nv">group</span><span class="p">:</span> <span class="kt">DispatchGroup</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">TaskScheduler</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/OperationQueue"></a>
                <a name="//apple_ref/swift/Section/OperationQueue" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/OperationQueue"></a>
                  <h3 class="section-name"><p>OperationQueue</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine13TaskSchedulerV14operationQueueyACSo011NSOperationF0CFZ"></a>
                    <a name="//apple_ref/swift/Method/operationQueue(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine13TaskSchedulerV14operationQueueyACSo011NSOperationF0CFZ">operationQueue(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">operationQueue</span><span class="p">(</span><span class="n">_</span> <span class="nv">queue</span><span class="p">:</span> <span class="kt">OperationQueue</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">TaskScheduler</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine13TaskSchedulerV04taskD0ACyF"></a>
                    <a name="//apple_ref/swift/Method/taskScheduler()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine13TaskSchedulerV04taskD0ACyF">taskScheduler()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">taskScheduler</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">TaskScheduler</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2020 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2020-03-28)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
